﻿<UserControl x:Class="UnityEditor.Controls.ComponentControl.Editors.Vector4Editor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:UnityEditor.Controls.ComponentControl.Editors"
             mc:Ignorable="d" 
             d:DesignHeight="300" 
             d:DesignWidth="300"
             x:Name="vector4Editor">
    <UserControl.Resources>
        <local:Vector4Converter x:Key="Vector4Converter" />
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column="0" Text="X:" />
        <TextBox Grid.Column="1" Text="{Binding Vector4Value, ElementName=vector4Editor, Converter={StaticResource Vector4Converter},ConverterParameter=X}" />
        <TextBlock Grid.Column="2" Text="Y:" />
        <TextBox Grid.Column="3" Text="{Binding Vector4Value, ElementName=vector4Editor, Converter={StaticResource Vector4Converter},ConverterParameter=Y}" />
        <TextBlock Grid.Column="4" Text="Z:" />
        <TextBox Grid.Column="5" Text="{Binding Vector4Value, ElementName=vector4Editor, Converter={StaticResource Vector4Converter},ConverterParameter=Z}" />
        <TextBlock Grid.Column="6" Text="W:" />
        <TextBox Grid.Column="7" Text="{Binding Vector4Value, ElementName=vector4Editor, Converter={StaticResource Vector4Converter},ConverterParameter=W}" />
    </Grid>
</UserControl>
